package com.heima.model.admin.dtos;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

@NoArgsConstructor
@Data
public class AdChannelDto {

    @NotNull(message = "频道名称不能为空")
    @JsonProperty("name")
    private String name;
    @NotNull(message = "页码不能为空")
    @JsonProperty("size")
    private Integer size;

    @Max(value = 10, message = "大小不能超过10")
    @JsonProperty("page")
    private Integer page;
}
